<template>
  <div id="app">
    <Tab
        :curIdx = "curIdx"
        @changTab = "changTab2121"
    ></Tab>
    <page :cur-idx="curIdx"></page>
  </div>
</template>


<script>
import Tab from  '@/components/tab/index'
import page from '@/views/index'
export default {
  name:'App',
  components:{
    Tab,
    page
  },
  data() {
    return {
      curIdx:0
    }
  },
  methods: {
    changTab2121(index) {
      this.curIdx = index
    }
  },

}
</script>

<style lang="scss">

</style>
